package com.simtop.dao;

import com.simtop.pojo.experiment.Experiment;
import com.simtop.pojo.experiment.ExperimentVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author lvyongwei
 */
@Mapper
public interface ExperimentMapper {

    /**
     * 添加实验信息
     * @param experiment
     * @return
     */
    public boolean addExperiment(Experiment experiment);

    /**
     * 修改实验信息
     * @param experiment
     * @return
     */
    public boolean updateExperiment(Experiment experiment);

    /**
     * 查询列表内容
     * @param experimentvo
     * @return
     */
    public List<ExperimentVo> getAllExperiment(ExperimentVo experimentvo);

    /**
     * 获取成绩分布
     * @return
     */
    public Map<String,Integer> getScoreDistribution();

    /**
     * 删除实验报告
     * @param ids
     * @return
     */
    public boolean deleteExperiment(Long[] ids);
}
